package com.fowo.api.model.receipt;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.EnumsString;
import javax.validation.constraints.*;
import lombok.Data;

/** 收货单子表 导入导出辅助模型 */
@Data
public class ReceiptProductExcelPo {

  @ExcelProperty(value = "所属收货单")
  private String parentReceiptOrderSn;

  @ExcelIgnore
  @ExcelProperty(value = "所属收货单")
  private Long parentReceipt;

  @ExcelProperty(value = "商品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "商品")
  private Long productId;

  @Size(max = 50, message = "sku长度不能超过20")
  @ExcelProperty(value = "sku")
  private String sku;

  @ExcelProperty(value = "店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long shopId;

  @Size(max = 50, message = "fnsku长度不能超过20")
  @ExcelProperty(value = "fnsku")
  private String fnsku;

  @ExcelProperty(value = "采购量")
  private Integer purchaseNum;

  @ExcelProperty(value = "待到货量")
  private Integer waitNum;

  @ExcelProperty(value = "已通知量")
  private Integer notifiedNum;

  @ExcelProperty(value = "未通知量")
  private Integer notNotifiedNum;

  @ExcelProperty(value = "通知收货量")
  private Integer noticeReceiptNum;

  @ExcelProperty(value = "待质检量")
  private Integer noQcNum;

  @EnumsString(
    value = { "未质检", "部分质检", " 完成质检" },
    message = "质检状态的可用值为 “未质检”, “部分质检”, “ 完成质检” 其中之一"
  )
  @Size(max = 50, message = "质检状态长度不能超过20")
  @ExcelProperty(value = "质检状态")
  private String qcStatus;

  @Size(max = 50, message = "备注长度不能超过20")
  @ExcelProperty(value = "备注")
  private String remarks;

  @ExcelProperty(value = "收货量")
  private Long receiptNum;

  @ExcelProperty(value = "可用量")
  private Long productGoodNum;

  @ExcelProperty(value = "次品量")
  private Long productBadNum;
}
